package com.spzx.channel.controller;

import com.spzx.channel.service.LockService;
import com.spzx.common.core.domain.R;
import io.swagger.v3.oas.annotations.Operation;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("lock")
public class LockController {
    @Resource
    LockService lockService;
    @Operation(summary = "测试锁接口")
    @GetMapping("incr")
    public R incr(){
        lockService.incr();
        return R.ok();
    }
}
